const axios = require('axios')
const config = require('../config')

module.exports = (fastify) => async (request, reply) => {
  const result = await axios.post(`${config.dingdingUrl}?access_token=${config.accessToken}`, request.body)
  return result.data
}
